namespace CIS
{
    using System;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;

    public class TopBanner : Page
    {
        protected HtmlImage imgBanner;

        private void InitializeComponent()
        {
            base.Load += new EventHandler(this.Page_Load);
        }

        private void logOutBtn_Click(object sender, EventArgs e)
        {
        }

        protected override void OnInit(EventArgs e)
        {
            this.InitializeComponent();
            base.OnInit(e);
        }

        private void Page_Load(object sender, EventArgs e)
        {
            this.SetFromImage();
        }

        private void SetFromImage()
        {
            switch (this.Session["language"].ToString())
            {
                case "cn":
                    this.imgBanner.Src = "images/banner.jpg";
                    break;

                case "en":
                    this.imgBanner.Src = "images/bannerEn.jpg";
                    break;
            }
        }
    }
}

